home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
mail.altrad.com
/
2015.02.mail.altrad.com.tar
/
mail.altrad.com
/
TEST
/
office german
/
PROPLUS.WW
/
PROPLSWW.CAB
/
PPCORE.DLL
/
RCDATA
/
5902
< prev
next >
Wrap
Text File
|
2006-10-27
|
7KB
|
255 lines
function FullScrInit()
{
g_allowAdvOnClick = GetCurSld().mAdvOnClk
document.body.style.backgroundColor="black"
document.oncontextmenu=parent._CM;
document.onkeydown = _KDH;
document.ondragstart=Cancel
document.onselectstart=Cancel
self.focus()
}
function Redirect( frmId )
{
var str=document.location.hash,idx=str.indexOf('#'), sId=GetSldId()
if(idx>=0) str=str.substr(1);
if( window.name != frmId && ( sId != str) ) {
obj = GetObj("Main-File")
window.location.href=obj.href+"#"+sId
return 1
}
return 0
}
var MHTMLPrefix = CalculateMHTMLPrefix();
function CalculateMHTMLPrefix()
{
if ( document.location.protocol == 'mhtml:') {
href=new String(document.location.href)
Start=href.indexOf('!')+1
End=href.lastIndexOf('/')+1
if (End < Start)
return href.substring(0, Start)
else
return href.substring(0, End)
}
return '';
}
function GetTags(base,tag)
{
if(g_supportsPPTHTML) return base.all.tags(tag);
else return base.getElementsByTagName(tag);
}
function UpdNtsPane(){ if(frames["PPTNts"]) PPTNts.location.replace( MHTMLPrefix+GetHrefObj( gCurSld ).mNtsHref ) }
function UpdNavPane( sldIndex ){ if(gNavLoaded) PPTNav.UpdNav() }
function UpdOtNavPane(){ if(gOtlNavLoaded) PPTOtlNav.UpdOtlNav() }
function UpdOtlPane(){ if(gOtlLoaded) PPTOtl.UpdOtl() }
function SetHasNts( fVal )
{
if( gHasNts != fVal ) {
gHasNts=fVal
UpdNavPane()
}
}
function ToggleOtlText()
{
gOtlTxtExp=!gOtlTxtExp
UpdOtlPane()
}
function ClearMedia()
{
if (PPTSld.pptSound) PPTSld.pptSound.loop = 0;
}
function FullScreen()
{
if ( PPTSld.g_animUseRuntime )
PPTSld.document.body.pause();
ClearMedia();
var href = ( document.location.protocol == 'mhtml:') ? FULLSCR_HREF : FULLSCR_HREF+"#"+GetHrefObj(gCurSld).mSldHref;
if(PPTNav.event.ctrlKey) {
var w = (window.screen.availWidth * 1.0) / 2.0
var h = w * (PPTSld.g_origH * 1.0) / PPTSld.g_origW
win = window.open( MHTMLPrefix+href,null,"toolbar=0,resizable=1,top=0,left=0," + "width="+ w + ",height=" + h );
if( win.document.body && PPTSld.g_animUseRuntime )
win.document.body.PPTSldFrameset=window;
}
else
{
win = window.open( MHTMLPrefix+href,null,"fullscreen=yes" );
if( win.document.body && PPTSld.g_animUseRuntime )
win.document.body.PPTSldFrameset=window;
}
}
function ToggleVNarration()
{
rObj=PPTSld.document.all("NSPlay")
if( rObj && !PPTSld.g_animUseRuntime ) {
if( (rObj.playState == 1)||(rObj.playState == 0) )
rObj.Play()
else if( rObj.playState == 2 )
rObj.Pause()
else
return;
}
else if( PPTSld.g_animUseRuntime )
{
narObj = PPTSld.document.all("narrationID")
if( narObj )
narObj.togglePause()
}
}
function GetCurSldNum()
{
obj=GetHrefObj(gCurSld)
if( obj.mOrigVis == 1 )
return obj.mSldIdx
else
return gCurSld
}
function GetNumSlds()
{
if( GetHrefObj(gCurSld).mOrigVis == 1 )
return GetSldList().mNumVisSlds;
else
return GetSldList().mList.length
}
function GetSldNum( href )
{
for(ii=0; ii<GetSldList().mList.length; ii++) {
if ( GetSldList().mList[ii].mSldHref == href )
return ii+1
}
return 1
}
function GetHrefObj( sldIdx ){ return GetSldList().mList[sldIdx-1] }
function IsFramesMode(){ return ( SCREEN_MODE == "Frames" ) }
function IsFullScrMode(){ return ( SCREEN_MODE == "FullScreen" ) }
function GoToNextSld()
{
ii=gCurSld + 1
if( GetHrefObj( ii-1 ).mOrigVis == 0 ) {
if( ii<=GetSldList().mList.length ) {
obj=GetHrefObj(ii)
obj.mVis=1
GoToSldNum(ii)
return
}
}
else {
obj=GetHrefObj( ii )
while ( obj && ( obj.mOrigVis == 0 ) )
obj=GetHrefObj(++ii)
if( obj && obj.mOrigVis ) {
GoToSldNum(ii)
return
}
}
if( gSldStack.length > 1 )
PopSldList();
else if( !IsFramesMode() ) {
if( gLoopCont )
GoToFirst()
else
EndShow()
}
}
function GoToPrevSld()
{
ii=gCurSld-1
if( ii > 0 ) {
obj=GetHrefObj(ii)
while ( obj && ( obj.mVis == 0 ) && ( ii>0 ) )
obj=GetHrefObj(--ii)
if( ii == 0 ) ii=1
GoToSldNum(ii)
}
}
function GoToFirst(){ GoToSld( GetHrefObj(1).mSldHref ) }
function GoToLast()
{
ii=GetSldList().mList.length
if( ii != gCurSld )
GoToSld( GetHrefObj(ii).mSldHref )
}
function GoToSldNum( num )
{
if( PPTSld.event ) PPTSld.event.cancelBubble=true
obj = GetHrefObj( num )
obj.mVis=1
gPrevSld=gCurSld
gCurSld = num;
PPTSld.location.replace(MHTMLPrefix+obj.mSldHref)
if( IsFramesMode() ) {
UpdNavPane(); UpdOtlPane(); UpdNtsPane()
}
}
function GoToSld( href )
{
if( PPTSld.event ) PPTSld.event.cancelBubble=true
GetHrefObj( GetSldNum(href) ).mVis=1
PPTSld.location.replace(MHTMLPrefix+href)
}
function SldUpdated( id )
{
if( id == GetHrefObj(gCurSld).mSldHref ) return
gPrevSld=gCurSld
gCurSld=GetSldNum(id)
if( IsFramesMode() ) {
UpdNavPane(); UpdOtlPane(); UpdNtsPane()
}
}
function PrevSldViewed(){ GoToSld( GetHrefObj(gPrevSld).mSldHref ) }
function HasPrevSld() { return ( gIsEndShow || ( gCurSld != 1 && GetHrefObj( gCurSld-1 ).mVis == 1 )||( GetCurSldNum() > 1 ) ) }
function HasNextSld() { return (GetCurSldNum() != GetNumSlds()) }
function CloseWindow() {
if( HideMenu() ) return;
var event = PPTSld.event;
if( !IsFramesMode() && event && (event.keyCode==27 || event.keyCode==32 || event.type=="click" ) )
window.close( self );
CatchNumKeys( self, event );
}
function Unload() { gIsEndShow=0; }
function SetupEndShow() {
gIsEndShow=1;
PPTSld.document.body.scroll="no";
PPTSld.document.onkeypress=CloseWindow;
PPTSld.document.onclick=CloseWindow;
PPTSld.document.oncontextmenu=_CM;
}
function EndShow()
{
if( IsFramesMode() ) return
if( PPTSld.event ) PPTSld.event.cancelBubble=true
doc=PPTSld.document
var dir = doc.body.dir
if( dir != "rtl" ) dir = "ltr";
doc.open()
doc.writeln('<html><body dir=' + dir + ' bgcolor=black onload=parent.SetupEndShow() onunload=parent.Unload()><center><p><font face=Tahoma color=white size=2><br><b>' + ENDSHOW_MESG + '</b></font></p></center></body></html>')
doc.close()
}
function SetSldVisited(){ GetSldList().mList[gCurSld-1].mVisited=true }
function IsSldVisited(){ return GetSldList().mList[gCurSld-1].mVisited }
function hrefList( sldHref, visible, advDelay, advClk )
{
this.mSldHref= this.mNtsHref = sldHref
this.mOrigVis= this.mVis = visible
this.mVisited= false
this.mAdvDelay= advDelay
this.mAdvOnClk= advClk
}
function SldList(arr,curSld,fEnd)
{
this.mCurSld = curSld;
this.mList = new Array();
var idx = 1;
for(ii=0;ii<arr.length;ii++) {
this.mList[ii] = new hrefList( arr[ii].mSldHref, arr[ii].mOrigVis, arr[ii].mAdvDelay, arr[ii].mAdvOnClk );
if( arr[ii].mOrigVis )
this.mList[ii].mSldIdx = idx++;
}
this.mNumVisSlds = idx-1;
this.fEndShow = fEnd;
}
function GetSldList() { return gSldStack[gSldStack.length-1] }
function GetCurSld() { return parent.GetSldList().mList[parent.gCurSld - 1] }
gSldStack = new Array();
gSldStack[0] = new SldList(gMainDoc,gCurSld,1)